package com.susu.springboot_swagger.service;

import com.susu.springboot_swagger.entity.Hospital;
import com.susu.springboot_swagger.mapper.HospitalDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalService {


    @Autowired
    private HospitalDao hospitalDao;

    public List<Hospital> getHospitalName() {
        List<Hospital> hospitalList = hospitalDao.queryAllBy();
        return hospitalList;
    }
}
